package com.dto.dataenum;

/**
 * @author:LG
 * @date:Created at 2019/03/09
 */
public enum MessageEnum {
    /*员工提示信息*/
    SELECT_COMMENT_SUCCESS(200, Messages.SELECT_COMMENT_SUCCESS),
    SELECT_COMMENT_FAIL(4001, Messages.SELECT_COMMENT_FAIL),
    ADD_COMMENT_SUCCESS(200, Messages.ADD_COMMENT_SUCCESS),
    ADD_COMMENT_FAIL(4001, Messages.ADD_COMMENT_FAIL),
    UPDATE_COMMENT_SUCCESS(200, Messages.UPDATE_COMMENT_SUCCESS),
    UPDATE_COMMENT_FAIL(4001, Messages.UPDATE_COMMENT_FAIL),
    DELETE_COMMENT_SUCCESS(200, Messages.DELETE_COMMENT_SUCCESS),
    DELETE_COMMENT_FAIL(4001, Messages.DELETE_COMMENT_FAIL),
    ;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 状态信息
     */
    private String msg;


    MessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
